<template>
  <div>
    <van-tabbar class="tab" v-model="active" route :safe-area-inset-bottom='true'>
      <van-tabbar-item replace to="/" icon="home-o">首页</van-tabbar-item>
      <van-tabbar-item replace to="/article" icon="setting-o">文章</van-tabbar-item>
    </van-tabbar>
  </div>
</template>
<script>
import { Tabbar, TabbarItem } from "vant";
export default {
  components: {
    [Tabbar.name]: Tabbar,
    [TabbarItem.name]: TabbarItem,
  },
  data(){
    return{
      active:0
    }
  }
};
</script>
<style lang="less">
.tab{
  height: 60px;
}
</style>